<%@ page import="sige.Professor" %>

<!-- --------DADOS PESSOAIS---------- -->

<div class="control-group" >
    <label  class="control-label" for="dadosPessoais">
        <h5><g:message code="professor.dadosPessoais.label" default="Dados Pessoais" /></h5>
    </label>  
</div>

<div class="control-group" >
	 <label  class="control-label" for="nome">
		<g:message code="professor.nome.label" default="Nome" />
	</label> 
 	 <div class="controls"> 
	<g:textField name="nome" value="${professorInstance?.nome}"/>
	 </div> 
 </div>

<g:if test="${professorInstance?.id}">
<div class="control-group" >
	 <label  class="control-label" for="usuario">
		<g:message code="professor.usuario.label" default="Usuario" />
	</label> 
 	 <div class="controls"> 
	<g:select id="usuario" name="usuario.id" from="${sige.Usuario.list()}" optionKey="id" value="${professorInstance?.usuario?.id}" class="many-to-one" noSelection="['null': '']"/>
	 </div> 
 </div>
</g:if>
  
<div class="control-group" >
	 <label  class="control-label" for="dataDeNascimento">
		<g:message code="professor.dataDeNascimento.label" default="Data De Nascimento" />
		<span class="required-indicator">*</span>
	</label> 
 	 <div class="controls"> 
	<g:myDatePicker name="dataDeNascimento" precision="day"  value="${professorInstance?.dataDeNascimento}"  />
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="cpf">
		<g:message code="professor.cpf.label" default="Cpf" />
		
	</label> 
 	 <div class="controls"> 
	<g:textField name="cpf" value="${professorInstance?.cpf}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="rg">
		<g:message code="professor.rg.label" default="Rg" />
		
	</label> 
 	 <div class="controls"> 
	    <g:textField class="span2" name="rg" value="${professorInstance?.rg}"/>
	 
	 <span >
		<g:message code="professor.orgaoExpedidor.label" default="Orgao Exp" />
	</span> 
 	 <span> 
	    <g:textField class="span1" name="orgaoExpedidor" value="${professorInstance?.orgaoExpedidor}"/>
	 </span> 
	 </div>
 </div>

<div class="control-group" >
	 <label  class="control-label" for="estadoCivil">
		<g:message code="professor.estadoCivil.label" default="Estado Civil" />
		
	</label> 
 	 <div class="controls"> 
	<g:select name="estadoCivil" value="${professorInstance?.estadoCivil}" from="${professorInstance?.constraints.estadoCivil.inList}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="numFilhos">
		<g:message code="professor.numFilhos.label" default="Num Filhos" />
		<span class="required-indicator">*</span>
	</label> 
 	 <div class="controls"> 
	<g:field class="span1" name="numFilhos" min="0" type="number" value="${professorInstance.numFilhos}" required="" style="text-align: right"/>
	 </div> 
 </div>

<!-- --------DADOS PROFISSIONAIS---------- -->

<div class="control-group" >
    <label  class="control-label" for="dadosProfissionais">
        <h5><g:message code="professor.dadosProfissonais.label" default="Dados Profissionais" /></h5>
    </label>  
</div>

<div class="control-group" >
	 <label  class="control-label" for="dataDeAdmissao">
		<g:message code="professor.dataDeAdmissao.label" default="Data De Admissao" />
		<span class="required-indicator">*</span>
	</label> 
 	 <div class="controls"> 
	<g:myDatePicker name="dataDeAdmissao" precision="day"  value="${professorInstance?.dataDeAdmissao}"  />
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="escolaridade">
		<g:message code="professor.escolaridade.label" default="Escolaridade" />
		
	</label> 
 	 <div class="controls"> 
	<g:textField name="escolaridade" value="${professorInstance?.escolaridade}"/>
	 </div> 
 </div>

<div class="control-group" >
    <label  class="control-label" for="salario">
	<g:message code="professor.salario.label" default="Salario" />
	<span class="required-indicator">*</span>
    </label> 
    <div class="controls">
        <div class="input-append">
          <g:textField class="span1" name="salario" value="${fieldValue(bean: professorInstance, field: 'salario')}" required="" style="text-align: right"/>
          <span class="add-on">.00</span>
        </div>
    </div> 
 </div>

<!-- --------DADOS DE CONTATO---------- -->

<div class="control-group" >
    <label  class="control-label" for="dadosParaContato">
      <h5><g:message code="professor.dadosParaContato.label" default="Dados Para Contato" /></h5>
    </label>  
 </div>

<div class="control-group" >
	 <label  class="control-label" for="email">
		<g:message code="professor.email.label" default="Email" />
		
	</label> 
 	 <div class="controls"> 
	<g:field type="email" name="email" value="${professorInstance?.email}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="telefone">
		<g:message code="professor.telefone.label" default="Telefone" />
	</label> 
 	 <div class="controls"> 
	<g:textField name="telefone" value="${professorInstance?.telefone}"/>
	 </div> 
 </div>

<div class="control-group" >
    <label  class="control-label" for="celular">
        <g:message code="professor.celular.label" default="Celular" />
    </label> 
    <div class="controls">
        <g:textField name="celular" value="${professorInstance?.celular}"/>
    </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="celularSecundario">
		<g:message code="professor.celularSecundario.label" default="CelularSecundario" />
		
	</label> 
 	 <div class="controls"> 
	<g:textField name="celularSecundario" value="${professorInstance?.celularSecundario}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="endereco">
		<g:message code="professor.endereco.label" default="Endereco" />
		
	</label> 
 	 <div class="controls"> 
	<g:textField name="endereco" value="${professorInstance?.endereco}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="cidade">
		<g:message code="professor.cidade.label" default="Cidade" />
		
	</label> 
 	 <div class="controls"> 
	<g:textField name="cidade" value="${professorInstance?.cidade}"/>
	 </div> 
 </div>

<div class="control-group" >
	 <label  class="control-label" for="estado">
		<g:message code="professor.estado.label" default="Estado" />
	</label> 
 	 <div class="controls"> 
	<g:textField name="estado" value="${professorInstance?.estado}"/>
	 </div> 
 </div>
